<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <script>
      const baseSize = 32; // 基准值
      function setRem(){
        // 视口区域宽度 / 750   缩放比例
        const scale = document.documentElement.clientWidth / 750;
        // 设置 html 字体大小  最大两倍  小于2  取 scale为 缩放比例
        document.documentElement.style.fontSize = baseSize *Math.min(scale,2) + 'px';
      }
      setRem()
      window.onresize = function(){
        setRem()
      }
    </script>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
